package com.itheima.day9;

import java.io.FileOutputStream;
import java.io.IOException;

public class yihcang {
    public static void main(String[] args) {


    FileOutputStream fos = null;
    try{
        fos =  new FileOutputStream("C:\\Users\\Administrator\\Desktop\\misa.txt");
        fos.write("hello".getBytes());
    }catch (IOException e){
        e.printStackTrace();
    }finally {
        if (fos !=null){
            try{
                fos.close();
            }catch (IOException e){
                e.printStackTrace();
            }
        }
    }
}
}